import { EntityObjectFactory } from './../entityObjectFactory';
var EntityObject = EntityObjectFactory.GetEntityObjectType();
import { Payments } from './order';

export class Checkout extends EntityObject<Checkout> {
    constructor(args?) {
        super(args);
    }
    id: string;
    amountDue: number = 0;
    cashier: { id: string, name: string };
    cashierId: string;
    paidAmount: number;
    remainAmount: number = 0;
    storeId: string;
    payState: string;
    payments: Payments[];
    terminalName: string;
    terminal: { id: string, name: string };
    refOrderId: { id: string, type: string }[];
    createTime: number;
    closeTime: number;

    toString(): string { return "CheckOuts"; }
}